//
//  PhotpHallViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-13.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "BaseViewController.h"
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>

@class SimpleCommentsCell;
@class PhotoDetailDataSource;
@interface PhotoDetailViewController : BaseViewController<MWPhotoBrowserDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UIImageView *logoImage;
@property (strong, nonatomic) IBOutlet UIImageView *avatarView;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *browserLabel;
@property (strong, nonatomic) IBOutlet UIButton *shareBtn;
@property (strong, nonatomic) IBOutlet UIButton *likeBtn;
@property (strong, nonatomic) IBOutlet UILabel *description;
@property (strong, nonatomic) IBOutlet UILabel *shopNameLabel;
@property (strong, nonatomic) IBOutlet UILabel *addressLabel;
@property (strong, nonatomic) IBOutlet UILabel *commentLabel;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;

@property (strong, nonatomic) IBOutlet UIView *topView;
@property (weak, nonatomic) IBOutlet UIView *detailView;
@property (strong, nonatomic) IBOutlet UIView *midView;
@property (strong, nonatomic) IBOutlet UIScrollView *theScrollView;

@property (strong, nonatomic) NSString *photoId;
@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSMutableArray *photoList;
@property (strong, nonatomic) PhotoDetailDataSource *dataSource;

- (id)initWithId:(NSString *)photoId;

@end

@interface PhotoDetailDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (strong, nonatomic) NSDictionary *photoEntity;
@property (strong, nonatomic) NSMutableArray *commentList;
@property (strong, nonatomic) SimpleCommentsCell *commentsCell;
@property (strong, nonatomic) PhotoDetailViewController *viewController;

- (void)fetchPhotoInfo;
- (void)like;
- (void)share;

@end
